{extend name="public/base" /}
{block name="body"}
<div class="layui-fluid">
  	<div class="layui-row">
    	<div class="layui-col-md12 layui-col-xs12">
			<div class="widget-head">
				<div class="widget-title">店员资料</div>
			</div>
		</div>
		<div class="layui-col-md12 layui-col-xs12 widget-body">
			<form id="my-form" class="layui-form" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label form-require">所属门店</label>
					<div class="layui-input-block">
						<select name="store_id" >
							<option value="">请选择</option>
							{volist name="store" id="item"}
                        	<option value="{$item.id}" {if condition="$info.store_id eq $item.id"}selected="selected"{/if}>{$item.name}
                        	</option>
                        	{/volist}
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label form-require">店员姓名</label>
					<div class="layui-input-block">
						<input type="text" class="layui-input" name="salername" value="{$info.salername}" placeholder="请输入店员姓名" required>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label form-require">联系电话</label>
					<div class="layui-input-block">
						<input type="text" class="layui-input" name="mobile" value="{$info.mobile}" placeholder="请输入联系电话" required>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label form-require">状态</label>
					<div class="layui-input-block">
						<input type="radio" name="status" value="1" title="启用" {eq name="info['status']" value="1"}checked{/eq}>
                    	<input type="radio" name="status" value="0" title="禁用" {eq name="info['status']" value="0"}checked{/eq}>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<input type="hidden" name="id" value="{$info.id}">
						<button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    	<button class="layui-btn layui-btn-primary" onclick="javascript:history.back(-1);return false;">返回</button>
					</div>						
				</div>
			</form>
		</div>
	</div>
</div>
{/block}